package com.itheima.状态修饰符;

public class Demo03 {


    public static void main(String[] args) {
        //首次访问Student对象,先加载Student类.class文件,name是静态成员,先加载在方法区,在方法区分配内存,赋默认值
        Student stu1 = new Student();
        stu1.name = "张三";
        stu1.age = 18;
        stu1.height = 2;
        System.out.println(stu1.name+","+stu1.age+","+stu1.height);

        Student stu2 = new Student();
        stu2.age = 21;
        stu2.height = 3;
        System.out.println(stu2.name+","+stu2.age+","+stu2.height);

    }
}
